<?php
$host = "localhost";
$user = "root";
$pass = "";
$banco = "cadastroperfil";
$connection = mysql_connect($host, $user, $pass) or die(mysql_error());
mysql_select_db($banco) or die(mysql_error());
?>	
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />	
<title>Removendo Perfil</title>
<link href="css/style.css" rel="stylesheet" media="screen">
</head>	
<body>
<?php
   $id = $_GET['id'];
  
   if(mysql_query("delete from perfis where id='$id'")){
   		//echo "Removido Com Sucesso !!!";
	   echo "<script>alert('Removido Com Sucesso !!!');</script>";
   }else{
   		echo mysql_error();
   }
?>
<br/><br/>
<a href="index.php"><img src="images/inicio.jpg" title="Tela Inicial"/></a> 
<a href="PesquisarPerfil.php"><img src="images/pesquisar.jpg" title="Pesquisar"/></a>  
</body>	


